package part10_代理模式_调用目标对象.p01_静态代理;

/**
 * @ClassName: Client
 * @Author: AllenSun
 * @Date: 2020/3/3 20:50
 */
public class Client {
    public static void main(String[] args) {
        //创建对象，被代理的对象
        TeacherDao teacherDao=new TeacherDao();
        //创建对象，代理对象
        TeacherDaoProxy teacherDaoProxy=new TeacherDaoProxy(teacherDao);
        teacherDaoProxy.teach();
    }
}
